import {defineStore} from 'pinia';

// 定义login窗口状态的接口
interface LoginState {
    login: boolean | null;
}

export const useLoginStore = defineStore('loginStore', {
    state: (): LoginState => ({
        login: null
    }),
    actions: {
        setLoginShow(isOpen: boolean) {
            this.login = isOpen
        }
    }
})
